package TransferObjekts;

public class Line implements Comparable<Line> {

	private String line = "";
	private int lineNumber = 0;

	public Line(String line, int lineNumber) {
		this.line = line;
		this.lineNumber = lineNumber;
	}

	public String getLine() {
		return line;
	}

	public void setLine(String line) {
		this.line = line;
	}

	public int getLineNumber() {
		return lineNumber;
	}

	public void setLineNumber(int lineNumber) {
		this.lineNumber = lineNumber;
	}

	@Override
	public String toString() {
		return "Line [line=" + line + ", lineNumber=" + lineNumber + "]";
	}

	@Override
	public int compareTo(Line l) {
		if(l != null){
			return this.line.compareTo(l.getLine());
		}else{
			return -1;
		}
	}

}
